package cn.yitun.chat.yitunservercommonlib.converter.dto2po.file;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupHeadDataDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupHeadDataInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.userchat.UserHeadDataInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 加好友回复
 */
@Mapper(componentModel = "spring")
public interface GroupHeadDataDto2PoConverter {

    GroupHeadDataDto2PoConverter INSTANCE = Mappers.getMapper(GroupHeadDataDto2PoConverter.class);

    GroupHeadDataDto do2dto(GroupHeadDataInfo info);

    List<GroupHeadDataInfo> do2dto(List<UserHeadDataInfo> doList);

    @InheritInverseConfiguration
    GroupHeadDataInfo dto2do(GroupHeadDataDto dto);
    @InheritInverseConfiguration
    List<GroupHeadDataInfo> dto2do(List<GroupHeadDataDto> dtoList);

}
